import Vue from 'vue'
import App from './App.vue'
import router from './router'
import fastClick from 'fastclick'
import ElementUI from 'element-ui'
import axios from 'axios'
import store from './store/index'

import './assets/css/reset.css'
import './assets/css/border.css'
import './assets/iconfont/iconfont.css'
import 'amfe-flexible'
import 'element-ui/lib/theme-chalk/index.css'

Vue.config.productionTip = false
fastClick.attach(document.body)
Vue.use(ElementUI)
Vue.prototype.axios = axios // 配置全局的axios
axios.defaults.timeout = 5000 // 请求超时
axios.defaults.baseURL = '/api/' // 页面里就可以省略api

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
